package pers.xiqingbo.pojo;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @PackageName: pers.xiqingbo.pojo
 * @ClassName: Order
 * @Description: 订单pojo类
 * @Author: Schieber
 * @Date: 2021/3/3 上午 5:17
 */
public class Order {
    /**
     * 订单id
     */
    private String orderId;
    /**
     * 订单创建时间
     */
    private Date creationTime;
    /**
     * 订单价格
     */
    private BigDecimal price;
    /**
     * 订单状态
     * 0代表未发货，1代表已发货，2代表已签收
     */
    private Integer status = 0;
    /**
     * 关联的用户id
     */
    private Integer userId;

    public Order() {
    }

    public Order(String orderId, Date creationTime, BigDecimal price, Integer status, Integer userId) {
        this.orderId = orderId;
        this.creationTime = creationTime;
        this.price = price;
        this.status = status;
        this.userId = userId;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public Date getCreationTime() {
        return creationTime;
    }

    public void setCreationTime(Date creationTime) {
        this.creationTime = creationTime;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return "Order{" +
                "orderId='" + orderId + '\'' +
                ", creationTime=" + creationTime +
                ", price=" + price +
                ", status=" + status +
                ", userId=" + userId +
                '}';
    }
}
